<?php
// +----------------------------------------------------------------------
// | HkCms 安装入口
// +----------------------------------------------------------------------
// | Copyright (c) 2020-2021 http://www.hkcms.cn, All rights reserved.
// +----------------------------------------------------------------------
// | Author: HkCms team <admin@hkcms.cn>
// +----------------------------------------------------------------------

namespace think;

require __DIR__ . '/../vendor/autoload.php';

if (file_exists(__DIR__ . '/../runtime/install.lock')) {
    echo 'HkCms已安装！';
    exit;
}

// 执行HTTP应用并响应
$http = (new App())->http;

$response = $http->name('install')->run();

$response->send();

$http->end($response);